<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head>
<meta charset="UTF-8">
    <title>菜单管理</title>
    <style>
        #frameContentLeft{
            width: 20%;
            float: left;
        }
        #frameContentRight{
            width: 80%;
            float: right;
        }
    </style>
    <link rel="icon" th:href="@{/favicon.ico}">
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all" />
    <link rel="stylesheet" th:href="@{/css/public.css}" media="all" />
</head>
<body style="overflow: hidden" sec:authorize="hasPermission('/admin/permission/toPermissionManager',null)">
<div id="div">
    <iframe id="frameContentLeft" th:src="@{/admin/permission/toPermissionLeftManager}" name="left" frameborder="0" onload="changeFrameLeftHeight()"></iframe>
    <iframe id="frameContentRight" th:src="@{/admin/permission/toPermissionRightManager}" name="right" frameborder="0" onload="changeFrameRightHeight()"></iframe>
</div>
<script type="text/javascript" th:src="@{/layui/layui.js}"></script>
<script>
    function changeFrameRightHeight(){
        var ifm= document.getElementById("frameContentRight");
        ifm.height=document.documentElement.clientHeight;
    }

    function changeFrameLeftHeight(){
        var ifm= document.getElementById("frameContentLeft");
        ifm.height=document.documentElement.clientHeight;
    }

    window.onresize=function(){
        changeFrameRightHeight();
        changeFrameLeftHeight();
    }
</script>
</body>
</html>